<head>
    <style type="text/css">
        #navDisease
        {
           width: 165px;
            
            height: 100px;
        }
        #typeDisease
        {
            width: 165px;
            
            height: 100px;
        }
        
        
        #Diseasepage
        {
            width: 45%;
           
            height: 50px;
           
        }
    
        
        #tablelist
        {
            height: 104px;
            width: 100%;
        
        }
     
        #Div1
        {
            width: 45%;
            
            height: 102px;
        }
    
    </style>
</head>
<%template _header%>
<%namespace YouHP.Model%>
<div id="searchDisease">
	<br />
	<div id="search-ui" align ="center" >
	<form  method="get">
	<table border=1>
		<tr>
			<td>通过疾病名称搜索：</td>
			<td><input name ="Diseasename" type="text" length="30" 
                    style="width: 221px; height: 21px" /></td>
			<td><input name ="commit" type="submit"  onclick =" "  value="search"/></td>
		</tr>
	</table>
	</form>
	</div>
</div>  

<%if ErrorCount!=0%>

	<%template _memerrmsgbox%>
<%/if%>

<br />
<table  width =100%>
<tr>
<td width =25% >

<div id="navDisease">
	按拼音首字母排序：
	<br />
<%csharp%>
foreach(string ch in mPingYin)
{
<%/csharp%>
<a href="?PinYin={ch}" >{ch}</a>
<%csharp%>
}
<%/csharp%>
</div>

<div id="typeDisease">
疾病类型选择：
<br />
<%csharp%>
foreach(DiseaseTypeInfo info in mDiseaseTypeLst)
{
<%/csharp%>
<a href="?DiseaseTypeId={info.Id}">{info.Name}</a>
<%csharp%>
}
<%/csharp%>
</div>


</td>


<td align ="right">


<div id="Diseasepage">
<div>
	<a href="{url}&page={1}">第一页</a>
	<a href="{url}&page={_prevpage}">前一页</a>
	<a href="#">...</a>
<%csharp%>
int pageno = 0;
for(int i=0; i < _pageCount; i++)
{
	pageno ++;
<%/csharp%>	
<%if {pageno}==_pageIndex %>
	<a href="{url}&page={pageno}"><b>{pageno}</b></a>
<%else%>
	<a href="{url}&page={pageno}">{pageno}</a>
<%/if%>
<%csharp%>
}
<%/csharp%>	
  <a href="#">...</a>
	<a href="{url}&page={_nextpage}">后一页</a>
	<a href="{url}&page={_pageCount}">最后一页</a>
</div>	
<div>
<form method ="post" action ="">
	<select id="pagesel" name ="pagesel">
<%csharp%>
for(int i=1; i <= _pageCount; i++)
{
<%/csharp%>

<%if i==_pageIndex %>
	<option value={i} selected =selected >{i}</option>
<%else%>
	<option value={i}>{i}</option>
<%/if%>

<%csharp%>
}
<%/csharp%>
	</select>
	<input type ="submit" value ="跳转到" />
</form>
</div>
</div>







<table border="1"  id ="tablelist">
<tr>
<td>疾病名称</td>
<td>疾病类型</td>
<td>发生人数</td>
</tr>


<%csharp%>

foreach(DiseaseInfo info in mDiseaseLst)
{	

<%/csharp%>
<tr>

<td>
<div id="Diseasename">
	<a href="ViewDisease.aspx?did={info.Id}">{info.Name}</a>
</div>
</td>
<td>
<div id="Diseaseintro">
	<a href="#{info.Id}" onclick="alert('{info.Type}');">{info.TypeName}</a>
</div>
</td>
<td>
<div id="Diseaseintro">
	<a href="#{info.Id}" onclick="alert('{info.Name}');">{PatientCount}</a>
</div>
</td>
</tr>
<%csharp%>
}
<%/csharp%>
</table>




<div id="Div1">
	<a href="{url}&page={1}">第一页</a>
	<a href="{url}&page={_prevpage}">前一页</a>
	<a href="#">...</a>
<%csharp%>
int pageno2 = 0;
for(int i=0; i < _pageCount; i++)
{
	pageno2 ++;
<%/csharp%>	
<%if {pageno2}==_pageIndex %>
	<a href="{url}&page={pageno2}"><b>{pageno2}</b></a>
<%else%>
	<a href="{url}&page={pageno2}">{pageno2}</a>
<%/if%>
<%csharp%>
}
<%/csharp%>	
  <a href="#">...</a>
	<a href="{url}&page={_nextpage}">后一页</a>
	<a href="{url}&page={_pageCount}">最后一页</a>
<form method ="post" action ="" >
	<select id="Select1" name ="pagesel">
<%csharp%>
for(int i=1; i <= _pageCount; i++)
{
<%/csharp%>

<%if i==_pageIndex %>
	<option value={i} selected =selected >{i}</option>
<%else%>
	<option value={i}>{i}</option>
<%/if%>

<%csharp%>
}
<%/csharp%>
	</select>
	<input type ="submit" value ="跳转到" />
</form>
</div>

</td>
</tr>


</table>




<%template _footer%>